package com.wenbo.fish.config;

import com.wenbo.fish.entity.CookieConstant;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author changwenbo
 * @date 2024/12/31 14:02
 */
@Slf4j
@Configuration
@PropertySource("classpath:cookie.properties")
public class CookieConfig {

    @Bean
    @ConfigurationProperties(prefix = "url.cookie")
    public CookieConstant cookieConstant() {
        return new CookieConstant();
    }
}
